package com.example.hystrixDemo.lamda;/**
 * @Deacription TODO
 * @Author baohuajie
 * @Date 2020/12/15 14:59
 * @Version 1.0
 **/

import java.util.ArrayList;
import java.util.List;

/**
 *@Deacription TODO
 *@Author baohuajie
 *@Date 2020/12/15 14:59
 *@Version 1.0
 **/
public class Main1 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<String>();

        for (int i = 0; i< 10; i ++) {
            list.add(String.valueOf(i));
        }

        list.stream().forEach(s -> {
            System.out.println(s);
        });

    }
}
